let Mians = () => import("@/views/Mains.vue");
export default [
  //运营管理
  {
    path: "aoperations",
    name: "aoperations",
    component: Mians,
    meta: {
      title: "运营管理",
      icon: "icon-histogramshixin",
    },
    children: [
      {
        //订单管理
        path: "OrderForm",
        name: "OrderForm",
        component: () => import("@/views/aoperations/OrderForm.vue"),
        meta: {
          title: "订单管理",
        },
      },
      {
        //评论管理
        path: "Comment",
        name: "Comment",
        component: () => import("@/views/aoperations/Comment.vue"),
        meta: {
          title: "评论管理",
        },
      },
      {
        //运费管理
        path: "Freight",
        name: "Freight",
        component: () => import("@/views/aoperations/Freight.vue"),
        meta: {
          title: "运费管理",
        },
      },
    ],
  },

  //商品管理
  {
    path: "bcommodity",
    name: "bcommodity",
    component: Mians,
    meta: {
      title: "商品管理",
      icon: "icon-iconshoppingcart",
    },
    children: [
      {
        //商品列表
        path: "List",
        name: "List",
        component: () => import("@/views/bcommodity/List.vue"),
        meta: {
          title: "商品列表",
        },
      },
      {
        //团购商品
        path: "GroupPurchase",
        name: "GroupPurchase",
        component: () => import("@/views/bcommodity/GroupPurchase.vue"),
        meta: {
          title: "团购商品",
        },
      },
      {
        //类目管理
        path: "Category",
        name: "Category",
        component: () => import("@/views/bcommodity/Category.vue"),
        meta: {
          title: "类目管理",
        },
      },
    ],
  },

  //推广管理
  {
    path: "cpromotion",
    name: "cpromotion",
    component: Mians,
    meta: {
      title: "推广管理",
      icon: "icon-iconsmanagement",
    },
    children: [
      {
        //广告管理
        path: "Advertising",
        name: "Advertising",
        component: () => import("@/views/cpromotion/Advertising.vue"),
        meta: {
          title: "广告管理",
        },
      },
      {
        //优惠劵管理
        path: "Coupon",
        name: "Coupon",
        component: () => import("@/views/cpromotion/Coupon.vue"),
        meta: {
          title: "优惠劵管理",
        },
      },
    ],
  },

  //用户管理
  {
    path: "duser",
    name: "duser",
    component: Mians,
    meta: {
      title: "用户管理",
      icon: "icon-icon_user",
    },
    children: [
      {
        //会员管理
        path: "Vip",
        name: "Vip",
        component: () => import("@/views/duser/Vip.vue"),
        meta: {
          title: "会员管理",
        },
      },
      {
        //地址管理
        path: "Site",
        name: "Site",
        component: () => import("@/views/duser/Site.vue"),
        meta: {
          title: "地址管理",
        },
      },
    ],
  },

  //系统管理
  {
    path: "esystem",
    name: "esystem",
    component: Mians,
    meta: {
      title: "系统管理",
      icon: "icon-icon_shezhi",
    },
    children: [
      {
        //系统配置
        path: "Deploy",
        name: "Deploy",
        component: () => import("@/views/esystem/Deploy.vue"),
        meta: {
          title: "系统配置",
        },
      },
      {
        //管理员
        path: "Admin",
        name: "Admin",
        component: () => import("@/views/esystem/Admin.vue"),
        meta: {
          title: "管理员",
        },
      },
      {
        //操作日志
        path: "Operation",
        name: "Operation",
        component: () => import("@/views/esystem/Operation.vue"),
        meta: {
          title: "操作日志",
        },
      },
      {
        //角色管理
        path: "Role",
        name: "Role",
        component: () => import("@/views/esystem/Role.vue"),
        meta: {
          title: "角色管理",
        },
      },
    ],
  },
];
